<%@include file="header.jsp" %>
<%@include file="menubar/customer_menu.jsp" %>
<div class="break_line"></div>
<div class="break_line"></div>
<% 
    session = request.getSession();
%>
<div id="content">
    <form method="POST" action="../add_customer" onsubmit="return go();">
        <div id="title_content">ADD CUSTOMER</div>
        <table class="form_content" width="100%">
        <tr>
            <td width="20%">FIRST NAME</td>
            <td>
                <%if(session.getAttribute("add_cus_first_name")!=null){%>
                <div class="form_error"><%=session.getAttribute("add_cus_first_name")%></div>
                <%}%>
                <input type="text" class="form_input" name="first_name" size="35" maxlength="40" value="<%= request.getSession().getAttribute("val_first_name")!=null?request.getSession().getAttribute("val_first_name"):"" %>" />
            </td>
        </tr>
        <tr>
            <td>LAST NAME</td>
            <td>
                <% if(session.getAttribute("add_cus_last_name") != null) {%> 
                <div class="form_error"><%=session.getAttribute("add_cus_last_name")%></div>  
                <% }%>
                <input type="text" class="form_input" name="last_name" size="35" maxlength="40" value="<%= session.getAttribute("val_last_name")!=null?session.getAttribute("val_last_name"):""%>" /></td>
        </tr>
        <tr>
            <td>EMAIL</td>
            <td>
                <% if(session.getAttribute("add_cus_email") != null) {%> 
                <div class="form_error"><%=session.getAttribute("add_cus_email")%></div>  
                <% }%>
                <input type="text" class="form_input" name="email" size="35" maxlength="40" value="<%= request.getSession().getAttribute("val_email")!=null?request.getSession().getAttribute("val_email"):""%>" /></td>
        </tr>
        <tr>
            <td>COMPANY</td>
            <td>
                <% if(session.getAttribute("add_cus_company") != null) {%> 
                <div class="form_error"><%=session.getAttribute("add_cus_company")%></div>  
                <% }%>
                <input type="text" class="form_input" name="company" size="35" maxlength="40" value="<%= request.getSession().getAttribute("val_company")!=null?request.getSession().getAttribute("val_company"):""%>" /></td>
        </tr>
        <tr>
            <td>ADDRESS</td>
            <td>
                <% if(session.getAttribute("add_cus_address") != null) {%> 
                <div class="form_error"><%=session.getAttribute("add_cus_address")%></div>  
                <% }%>
                <input type="text" class="form_input" name="address" size="35" maxlength="40" value="<%= request.getSession().getAttribute("val_address")!=null?request.getSession().getAttribute("val_address"):""%>" /></td>
        </tr>
        <tr>
            <td>PHONE</td>
            <td>
                <% if(session.getAttribute("add_cus_phone") != null) {%> 
                <div class="form_error"><%=session.getAttribute("add_cus_phone")%></div>  
                <% }%>
                <input type="text" class="form_input" name="phone" size="35" maxlength="40" value="<%= request.getSession().getAttribute("val_phone")!=null?request.getSession().getAttribute("val_phone"):""%>" /></td>
        </tr>
        
        <tr>
            <td colspan="2"><input type="submit" name="register" value="ADD" class="form_submit" /></td>
        </tr>
    </table>
    </form>
</div>
<!--END content-->
<%@include file="footer.jsp" %>